package ru.vboxdc.actions;

import com.opensymphony.xwork2.ActionSupport;
import ru.vboxdc.ObjectPool;
import ru.vboxdc.domain.VirtualMachine;

import java.util.List;

/**
 * User: lelon
 * Date: 29.01.2009
 * Time: 18:13:17
 */
public class ObjectPoolList extends ActionSupport {

    List<VirtualMachine> virtualMachines;

    public String execute() {
        virtualMachines =ObjectPool.get().getVirtualMachines();
        return SUCCESS;
    }

    public List<VirtualMachine> getVirtualMachines() {
        return virtualMachines;
    }
}
